package com.cqjtu.store.cart.pojo.vo;

import javax.validation.constraints.NotNull;

public class CountVO {
    private Integer id;
    private Integer userId;
    private Integer productId;
    private Long price;
    private Integer num;
    private String title;
    private String image;
    private Long sumPrice;
    private Long allSumPrice;
    private Integer allnum;


//    public Long getSumPrice() {
//        return num.longValue()*price;
//    }
    public Long getAllSumPrice(@NotNull(message = "金额不能为空") Long sumPrice){return allSumPrice;}
    public Integer getAllnum(@NotNull(message = "数量不能为空") int i){return num;}
}
